import display from '@ohos.display';

const curDisplay = display.getDefaultDisplaySync()
const designWidth = 750

const width:number = curDisplay.width

export const px = (len:number)=>{
  return (len/designWidth)* width +'px'
}
